package com.demo6;

/**
 * Created by Administrator on 2017/3/27.
 */
class Outer {
    String out_string = "String in Outer";

    void useInner() {
        Inner in = new Inner();
        in.print();
    }

    class Inner {
        void print() {
            System.out.println("Inner.print()");
            System.out.println("use\'" + out_string + "\'");
        }
    }
}

public class NeiBuLei {
    public static void main(String[] args) {
        Outer out = new Outer();
        out.useInner();
    }
}
